package com.ask.common.enumeration;

/**
 * 记录异常的错误码
 */
public enum ExceptionCode {
    BASE_EXCEPTION(300),
    ILLEGAL_ARGUMENT_EXCEPTION(301),
    RESOURCE_NOTFOUND_EXCEPTION(302);
    private final int code;

    ExceptionCode(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
